<%@page contentType="text/html;charset=UTF-8"%>
<%@taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@taglib uri="/WEB-INF/tld/pageable.tld" prefix="pageable"%>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>
${pu:listAdd('taskGroupUserParams', param.taskGroupId)}
${pu:reqSet('taskGroupUsers', pu:queryByHql('from TaskGroupUser where taskGroup.id=?', pu:arrayGet('taskGroupUserParams'), null))}
<c-rt:choose>
<c-rt:when test="${param.showType=='multi'}">
<c-rt:forEach items="${taskGroupUsers }" var="taskGroup">
<div style="width:180px;float:left">
<input type="checkbox" class="multiUsers" name="${param.columnName }" value="${taskGroup.user.username }"/>${taskGroup.user.username }
</div>
</c-rt:forEach>
</c-rt:when>
<c-rt:when test="${param.showType=='multiAssign'}">
<c-rt:forEach items="${taskGroupUsers }" var="taskGroup">
<div style="width:180px;float:left">
<input type="checkbox" class="multiAssignUsers" name="${param.columnName }" value="${taskGroup.user.username }"/>${taskGroup.user.username }<input type="text" name="assignCounts" size="3"/>
</div>
</c-rt:forEach>
</c-rt:when>
<c-rt:otherwise>
<select name="${param.columnName}">
<option value="">请选择</option>
<c-rt:forEach items="${taskGroupUsers }" var="taskGroup">
<option value="${taskGroup.user.username }" <c-rt:if test="${taskGroup.user.username==param.username }">selected="selected"</c-rt:if>>${taskGroup.user.username }</option>
</c-rt:forEach>
</select>
</c-rt:otherwise>
</c-rt:choose>